import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue()
  ],
  server: {
    port: 443,
    host: true,
    proxy: {
      '/api': {
        target: 'http://test.webapi.czqxrmyy.com/',
        changeOrigin: true
      }
    },
  },
  resolve: {
    // 配置路径别名
    alias: {
      '@': resolve(__dirname, './src'),
      '@b': resolve(__dirname, './')
    },
  }
})
